package com.cy.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

/**
 * @Usefulness: 用途
 * @Author: LeiTing
 * @Date: 2021/9/18  15:23
 * @Version 1.0
 */
@Service
public class ConsumerService {
    /**
     * @SentinelResource 描述方法会作为
     * @return
     */
    @SentinelResource
    public String doGetResource(){
        return "Get resource";
    }
}
